<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


//set page variables
if( isset( $_GET['q'] ) ) {
//set the page var here
	$pageVars['keyword'] = htmlspecialchars( $_GET['q'] );
}
$category = '';
if( isset( $_GET['category'] ) )
	$pageVars['category'] = htmlspecialchars( $_GET['category'] );

$catedao = GetProductCategoryDAO();
$pageVars['productCateList'] = $catedao->GetLevel1Category();

$catedao = GetShopCategoryDAO();
$pageVars['shopCateList'] = $catedao->GetLevel1Category();


/**********************************************************
 *	removed to the PageAuthentication
 * 
 *	Seal modified 2010-1-3
 **********************************************************/
//get user info
/*$userinfo = getUserFromCookie();
if( $userinfo ){
	$pageVars['userinfo'] = $userinfo;
}
*/
?>
